from . import settings

# 确保 Cloudinary 配置在 Django 启动时加载
import cloudinary
import cloudinary.uploader
import cloudinary.api

cloudinary.config(
    cloud_name=settings.CLOUDINARY_STORAGE['CLOUD_NAME'],
    api_key=settings.CLOUDINARY_STORAGE['API_KEY'],
    api_secret=settings.CLOUDINARY_STORAGE['API_SECRET']
)
